package com.easy.framework.common.config;

import com.easy.framework.common.utils.SpringUtils;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Getter
@Setter
@ConfigurationProperties(prefix = "easy.security")
@Configuration
public class SecretProperties {

    private String privateKey;

    private String publicKey;

    private String charset = "UTF-8";

    private String type = "sm2";

    private boolean debug = false;

    public static SecretProperties build() {
        return SpringUtils.getBean(SecretProperties.class);
    }
}
